//新建一个菜单

#include <stdio.h>
int main(){
	int menu = 0;
	int flag = 1;

	while(flag){
		printf("------  菜单 -----\n");
		printf("1\t -- 酸辣土豆丝\n ");
		printf("2\t -- 红烧排骨\n ");
		printf("3\t -- 糖醋排骨\n ");
		printf("4\t -- 拔丝红薯\n ");
		printf("5\t -- 醋溜白菜\n ");
		printf("6\t -- 爆炒黄牛肉\n ");
		printf("7\t -- 红烧狮子头\n ");
		printf("8\t -- 干锅土豆片\n ");
		printf("9\t -- 小炒肉\n ");
		printf("10\t -- 西湖牛肉羹\n ");
		scanf("%d",&menu);

		switch(menu)
		{
			case 1:
				printf("\033[31;1m 1\t -- 酸辣土豆丝\033[0m\n");
				break;
			case 2:
				printf("\033[32;2m 2\t -- 红烧排骨\033[0m\n ");
				break;
			case 3:
				printf("\033[33;2m 3\t -- 糖醋排骨\033[0m\n ");
				break;
			case 4:
				printf("\033[34;3m 4\t -- 拔丝红薯\033[0m\n ");
				break;
			case 5:
				printf("\033[35;4m 5\t -- 醋溜白菜\033[0m\n ");
				break;
			case 6:
				printf("\033[41;4m 6\t -- 爆炒黄牛肉\033[0m\n");
				break;
			case 7:
				printf("\033[42;1m 7\t -- 红烧狮子头\033[0m\n ");
				break;
			case 8:
				printf("\033[43;2m 8\t -- 干锅土豆片\033[0m\n ");
				break;
			case 9:
				printf("\033[44;3m9\t -- 小炒肉\033[0m\n ");
				break;
			case 10:
				printf("\033[45;4m 10\t -- 西湖牛肉羹\033[0m\n ");
				break;
			case 0:
				flag = 0;
				break;
			default:
				printf("input error\n");
				break;
		}
	}

	return 0;
}
